@echo off
cd PineaTest
if not exist bin (
    mkdir bin
)
if not exist build (
    mkdir build
)
cd build
cmake -G "Visual Studio 17 2022" -A x64 ..
cmake --build . --config=Release
cd ..
copy build\Release\PineaTest.exe bin\PineaTest.exe >nul 2>&1
cd ..
:: copy .\Pinea\bin\*.dll .\PineaTest\bin\ >nul 2>&1
set PATH=%PATH%;.\Pinea\bin
.\PineaTest\bin\PineaTest.exe